<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>外勤详情</title>
    <link rel="stylesheet" type="text/css" href="mode/weui/weui.min.css"/>
    <link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="webmain/css/rui.css">
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/js.js"></script>
    <script type="text/javascript" src="js/jswx.js"></script>
    <script type="text/javascript" src="js/base64-min.js"></script>
    <script type="text/javascript" src="web/res/js/jquery-rockupload.js"></script>
    <script  src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script charset="utf-8" src="http://map.qq.com/api/js?v=2.exp&libraries=convertor,geometry"></script>
    <style>

    </style>
    <script>

        var isgzh = <?=$isgzh?>;


        var id = GetQueryStrings("id");


        if(isgzh==1){
            js.jssdkwxgzh();
        }else{
            js.jssdkwixin();
        }


        wx.ready(function(){



            $.ajax({
                type: 'POST',

                 url: "http://oa.wxlion.com/?a=content&m=wq&d=we",
                 data: {
                    id :id

                },
                datatype: "json",
                success: function(data) {

                    var arr = eval(data);

                    var obj = arr[0];

                    $("#contenthtml").html('<div style="display: flex;flex-direction:row; margin-top: 10px; margin-bottom: 10px; justify-content: space-between;"><span id="name"></span> <span id="time"></span> </div><div style="display: flex;flex-direction:column;justify-content: space-between;"> <span id="content"></span></div> <span id="address"></span> <img id="img" style="width: 100%" src="">');

                    $("#name").html(obj.user)
                    $("#time").html(obj.optdt)
                    $("#content").html(obj.explain)
                    $("#address").html(obj.label)
                    $("#img").attr('src',obj.imgpath);


                },
                //调用出错执行的函数
                error: function(error1) {


                }
            });


        });


        window.onload=function(){



        }

        function GetQueryStrings(name)
        {
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if(r!=null)return  unescape(r[2]); return null;
        }
    </script>
    <style>

        html, body{ margin:5px; height:100%; }

    </style>
</head>


<body id="contenthtml">



</body>
</html>